package com.banach.prema.repository.dataobject;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author ajun
 * 
 */
@TableName("bnh_contact")
public class ContactDO{
	private Long id; //编号
	private String name; // 姓名
	private String mobile;//手机
	private boolean enable;//是否有效
	@TableField(value = "user_id",fill = FieldFill.INSERT)
	private Long userId;
	private boolean deleted;

	public Long getId() {
		return id;
	}

	public ContactDO setId(Long id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public ContactDO setName(String name) {
		this.name = name;
		return this;
	}

	public String getMobile() {
		return mobile;
	}

	public ContactDO setMobile(String mobile) {
		this.mobile = mobile;
		return this;
	}

	public boolean isEnable() {
		return enable;
	}

	public ContactDO setEnable(boolean enable) {
		this.enable = enable;
		return this;
	}

	public Long getUserId() {
		return userId;
	}

	public ContactDO setUserId(Long userId) {
		this.userId = userId;
		return this;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public ContactDO setDeleted(boolean deleted) {
		this.deleted = deleted;
		return this;
	}
}
